package com.lhj.security.dao;

import com.lhj.security.entity.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author linghaijin
 * @date 2020-04-09 16:23
 */
public interface UserDao extends JpaRepository<SysUser, Long> {

    /**
     * 根据用户名查询user
     * @param username
     * @return
     */
    SysUser getUserByUsername(String username);


}
